home *** CD-ROM | disk | FTP | other *** search
- 116
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- DeleteXFiles
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baDeleteXFiles deletes files with wildcard matching.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baDeleteXFiles( DirName , FileSpec )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, String.
- --- RECORDSEPARATOR ---
- DirName is the folder to delete the files from.
- --- RECORDSEPARATOR ---
- FileSpec determines what files are deleted.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns 1 if all the matching files were successfully deleted or if DirName doesn't
- --- RECORDSEPARATOR ---
- exist, else 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baDeleteXFiles( "c:\data" , "*.bak" )
- --- RECORDSEPARATOR ---
- set OK = baDeleteXFiles( "Mac HD:data", "TEXT" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baDeleteXFiles( "c:\\data , "*.bak" )
- --- RECORDSEPARATOR ---
- OK := baDeleteXFiles( "Mac HD:data", "TEXT" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- , the FileSpec argument follows normal DOS wildcard rules. A *
- --- RECORDSEPARATOR ---
- means match any character in the file name. So *.* deletes all files in the directory;
- --- RECORDSEPARATOR ---
- *.bmp deletes all files with a .bmp extension; T*.* deletes all files starting with the
- --- RECORDSEPARATOR ---
- letter T.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , the Filespec is the four character type code eg "TEXT". Only one
- --- RECORDSEPARATOR ---
- type can be specified. Use an empty string or "*.*" to match all files.